﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Entity;

namespace Web.admin.OutterManage
{
    public partial class OutterAwards : System.Web.UI.Page
    {
        private ContestService contestService = new ContestService();
        const int pagesize = 10;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Rp_Bind();
            }
        }
        /// <summary>
        /// repeater控件绑定
        /// </summary>
        protected void Rp_Bind()
        {
            Pager1.PageSize = pagesize;
            int records = 0;
            RpList.DataSource = contestService.GetPagerInnerContests(" COM_TYPE=1", " CON_ID DESC", Pager1.PageSize, Pager1.PageIndex, out records);
            RpList.DataBind();
            //初始化分页条,设置样式
            Pager1.SetPage(records);
            Pager1.ShowPageJump = true;
            Pager1.ShowPageLan = 0; //导航条语言:0=默认，1=中文，2=英语
        }
    }
}